﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;
using Huirui.Cavan.Domain.Seedwork;

namespace Huirui.Cavan.Domain.MainBoundedContext.StockModule
{
    public class UnitTransfer : Persistent
    {
        protected Corporation _corporation;
        protected StockUnit _fromUnit;
        protected StockUnit _toUnit;
        protected decimal _fromNumber;
        protected decimal _toNumber;

        public UnitTransfer()
        {
        }

        public UnitTransfer(Corporation corporation, DateTime createDate, DateTime modifyDate, int editUser, StockUnit fromUnit, StockUnit toUnit, decimal fromNumber, decimal toNumber)
        {
            this._corporation = corporation;
            this._fromUnit = fromUnit;
            this._toUnit = toUnit;
            this._fromNumber = fromNumber;
            this._toNumber = toNumber;
            this._createDate = createDate;
            this._modifyDate = modifyDate;
            this._editUser = editUser;
        }

        public virtual Corporation Corporation
        {
            get { return _corporation; }
            set { _corporation = value; }
        }


        public virtual StockUnit FromUnit
        {
            get { return _fromUnit; }
            set { _fromUnit = value; }
        }

        public virtual StockUnit ToUnit
        {
            get { return _toUnit; }
            set { _toUnit = value; }
        }

        public virtual decimal FromNumber
        {
            get { return _fromNumber; }
            set { _fromNumber = value; }
        }

        public virtual decimal ToNumber
        {
            get { return _toNumber; }
            set { _toNumber = value; }
        }
    }
}
